<%@page import="cn.edu.hpu.entity.Task"%>
<%@page import="cn.edu.hpu.entity.Goal"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>

    
    <title>My JSP 'newtask.jsp' starting page</title>
   <script type="text/javascript" src="bootstrap/jquery.js"></script>
		<script type="text/javascript" src="bootstrap/bootstrap.min.js"></script>
		<link rel="stylesheet" type="text/css" href="bootstrap/bootstrap.min.css" />
		<style type="text/css">
			input{
				height:30px;
			}
		</style>
  </head>
  
  <body>
  <%
  	String gid = (String)request.getAttribute("gid");
  	Task t = (Task)request.getAttribute("task");
   %>
    <div class="container">

	  <div class="row">

		<div class="span9">

			<form class="form-horizontal" action="updatetask.jspx" method="post">

        <fieldset>

          <legend>编辑任务</legend>

          <div class="control-group">

            <label class="control-label" for="input01">任务名称</label>

            <div class="controls">
				<input type="hidden" name="gid" value="${gid }">
				<input type="hidden" name="tid" value="<%=t.getTid()%>">
				
              <input type="text" class="span5" id="input01" x-webkit-speech="undefined" name="tname" value="<%=t.getTname() %>" >

            </div>

          </div>

          <div class="control-group">

            <label class="control-label" for="input01">开始时间</label>

            <div class="controls">

              <input type="text" class="span5" id="input01" x-webkit-speech="undefined" name="tbegintime" value="<%=t.getTbegintime()%>">

            </div>

          </div>

          <div class="control-group">

            <label class="control-label" for="input01">截止时间</label>

            <div class="controls">

              <input type="text" class="span5" id="input01" x-webkit-speech="undefined" name="tendtime" value="<%=t.getTendtime()%>">

            </div>

          </div>

          <div class="control-group">

            <label class="control-label" for="input01" >任务描述</label>

            <div class="controls">

              <textarea class="span5" rows="8" name="tdsp"></textarea>

            </div>

          </div>

          <div class="control-group">

            <label class="control-label" for="multiSelect">状态</label>

            <div class="controls">

              <select id="multiSelect" name="tstate">

                <option value="0">新任务</option>

                <option value="50">进行中</option>

                <option value="100">已完成</option>

              </select>

            </div>

          </div>

          <div class="control-group">

            <label class="control-label" for="multiSelect">级别</label>

            <div class="controls">

              <select id="multiSelect" name="tlevel">

                <option value="zyjj">重要紧急</option>

                <option value="zybjj">重要不紧急</option>

                <option value="jjbzy">紧急不重要</option>

                <option value="bjjbzy">不紧急不重要</option>

              </select>

            </div>

          </div>

          <div class="control-group">

            <label class="control-label" for="multiSelect">负责人</label>

            <div class="controls">

              <select id="multiSelect" name="tcname">

              	<option></option>

                <option value="Tom">Tom</option>

                <option value="Jerry">Jerry</option>

              </select>

            </div>

          </div>

          

          <div class="form-actions">

            <button type="submit" class="btn btn-primary">保存</button>

            <button class="btn" onclick="location.back()">返回</button>

          </div>

        </fieldset>

      </form>          

          	

		</div>

	</div>
	</div>

  </body>
</html>
